import datetime

if __name__ == '__main__':
    start = datetime.datetime.now()
    for a in range(1, 1000):
        for b in range(a, 1000):
            c = 1000 - a - b
            if c * c == a * a + b * b:
                print(a * b * c)
    end = datetime.datetime.now()
    print(end - start)
